package org.pomirkovany.beans;

import java.util.Date;

public class Item {
	private String id;
	private String name;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	private String author;
	private String owner;
	private int category;
	private Date date;
	private boolean borrowed;
	private String picture;
	private String location;
	private int rate;
	private String comment;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getOwner() {
		return owner;
	}
	public void setOwner(String owner) {
		this.owner = owner;
	}
	public int getCategory() {
		return category;
	}
	public void setCategory(int category) {
		this.category = category;
	}
	public String getDate() {
		return date.toString();
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public boolean isBorrowed() {
		return borrowed;
	}
	public void setBorrowed(boolean borrowed) {
		this.borrowed = borrowed;
	}
	public String getPicture() {
		return picture;
	}
	public void setPicture(String picture) {
		this.picture = picture;
	}
	public String getLocation() {
		return location;
	}
	public void setLocation(String location) {
		this.location = location;
	}
	public Item(){
		
	}
	public Item(String name, String author, String owner,
			int category, boolean borrowed, String picture,
			String location, int rate, String comment) {
		super();
		
		this.name = name;
		this.author = author;
		this.owner = owner;
		this.category = category;
		
		this.borrowed = borrowed;
		this.picture = picture;
		this.location = location;
		this.rate = rate;
		this.comment = comment;
	}
	public int getRate() {
		return rate;
	}
	public void setRate(int rate) {
		this.rate = rate;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
	
}
